<form class="form-horizontal m-t" id="transaction" method="post" action="{:url('setting/add')}">
    <div class="form-group">
        <label class="col-sm-3 control-label">矿石名字：</label>
        <div class="input-group col-sm-7">
            <input id="ksmz" type="text" class="form-control" name="site_info[ksmz]" value="{$site_info.ksmz ?? ''}" required="" aria-required="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">昨日均价：</label>
        <div class="input-group col-sm-7">
            <input id="zr_jj" type="text" class="form-control" name="site_info[zr_jj]" value="{$site_info.zr_jj ?? ''}" required="" aria-required="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">多少数量算大额：</label>
        <div class="input-group col-sm-7">
            <input id="de_num" type="text" class="form-control" name="site_info[de_num]" value="{$site_info.de_num ?? ''}" required="" aria-required="true">
            10以上包含10 10以下可拆单
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">大额挂买区间：</label>
        <div class="input-group col-sm-7">
            <input id="dygm" type="text" class="form-control" name="site_info[dygm]" value="{$site_info.dygm ?? ''}" required="" aria-required="true">
            {:explode('~',$site_info['dygm'])[0]}~{:explode('~',$site_info['dygm'])[1]}<br/>
            {:explode('~',$site_info['dygm'])[0]}*均价(最低挂买区间) ~ {:explode('~',$site_info['dygm'])[1]}*均价(最高挂买区间)<br/>
            <?php
                echo floor(explode('~',$site_info['dygm'])[0]*$site_info['zr_jj']*100)/100 ." ~ ".
                floor(explode('~',$site_info['dygm'])[1]*$site_info['zr_jj']*100)/100;
            ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">大额挂卖区间：</label>
        <div class="input-group col-sm-7">
            <input id="dycs" type="text" class="form-control" name="site_info[dycs]" value="{$site_info.dycs ?? ''}"
                   required="" aria-required="true">
            {:explode('~',$site_info['dycs'])[0]}~{:explode('~',$site_info['dycs'])[1]}<br/>
            {:explode('~',$site_info['dycs'])[0]}*均价(最低挂卖区间) ~ {:explode('~',$site_info['dycs'])[1]}*均价(最高挂卖区间)<br/>
            <?php
                 echo floor(explode('~',$site_info['dycs'])[0]*$site_info['zr_jj']*100)/100 ." ~ ".
                 floor(explode('~',$site_info['dycs'])[1]*$site_info['zr_jj']*100)/100;
            ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">小额挂买区间：</label>
        <div class="input-group col-sm-7">
            <input id="dycs" type="text" class="form-control" name="site_info[xegm]" value="{$site_info.xegm ?? ''}"
                   required="" aria-required="true">
            {:explode('~',$site_info['xegm'])[0]}~{:explode('~',$site_info['xegm'])[1]}<br/>
            {:explode('~',$site_info['xegm'])[0]}*均价(最低挂买区间) ~ {:explode('~',$site_info['xegm'])[1]}*均价(最高挂买区间)<br/>
            <?php
                echo floor(explode('~',$site_info['xegm'])[0]*$site_info['zr_jj']*100)/100 ." ~ ".
                floor(explode('~',$site_info['xegm'])[1]*$site_info['zr_jj']*100)/100;
            ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">小额挂卖区间：</label>
        <div class="input-group col-sm-7">
            <input id="xecs" type="text" class="form-control" name="site_info[xecs]" value="{$site_info.xecs ?? ''}"
                   required="" aria-required="true">
            {:explode('~',$site_info['xecs'])[0]}~{:explode('~',$site_info['xecs'])[1]}<br/>
            {:explode('~',$site_info['xecs'])[0]}*均价(最低挂卖区间) ~ {:explode('~',$site_info['xecs'])[1]}*均价(最高挂卖区间)<br/>
            <?php
                echo floor(explode('~',$site_info['xecs'])[0]*$site_info['zr_jj']*100)/100 ." ~ ".
                floor(explode('~',$site_info['xecs'])[1]*$site_info['zr_jj']*100)/100;
            ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">交易手续费：</label>
        <div class="input-group col-sm-7">
            <input id="sxf" type="text" class="form-control" name="site_info[sxf]" value="{$site_info.sxf ?? ''}" required="" aria-required="true">
            0.01 = 1%
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">交易获得冻结时间：</label>
        <div class="input-group col-sm-7">
            <input id="djsj" type="text" class="form-control" name="site_info[djsj]" value="{$site_info.djsj ?? ''}" required="" aria-required="true">
            小时
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">用户取消交易次数：</label>
        <div class="input-group col-sm-7">
            <input id="qx_num" type="text" class="form-control" name="site_info[qx_num]" value="{$site_info.qx_num ?? ''}" required="" aria-required="true">
            达到这个数值将不能交易
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">开始交易时间：</label>
        <div class="input-group col-sm-7">
            <input id="ks_time" type="text" class="form-control" name="site_info[ks_time]" value="{$site_info.ks_time ?? ''}" required="" aria-required="true">
            0-23 之间 开始时间需小于结束时间(请不要随意修改)
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">结束交易时间  0-23 之间：</label>
        <div class="input-group col-sm-7">
            <input id="js_time" type="text" class="form-control" name="site_info[js_time]" value="{$site_info.js_time ?? ''}" required="" aria-required="true">
            0-23 之间 开始时间需小于结束时间(请不要随意修改)
        </div>
    </div>
    <input type="hidden" name="option_name" value="site_info">

    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-8">
            <!--<input type="button" value="提交" class="btn btn-primary" id="postform"/>-->
            <button class="btn btn-primary" type="submit">确认提交</button>
        </div>
    </div>
</form>

